package pattern_observer;

public class Writer {

	private static int nbWriter = 0;
	
	private static String CONST_ID = "writer_";
	private int idNumber;
	private String id;
	
	public Writer() {
		if (id == null) {
			id = CONST_ID;
		}
		idNumber = nbWriter;
		nbWriter++;
	}
	
	public Writer(String id) {
		this.id = id;
	}
	
}
